package com.example.adms.leave.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.adms.leave.dto.*;
import com.example.adms.leave.entity.Leave;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hyt
 * @since 2023-04-20
 */
public interface LeaveMapper extends BaseMapper<Leave> {
    void insertLeave(leaveMsg msg);

    LeaveDetails selectLeaveDetails(int leaveId);

    int selectSysLeaveTime();

    Page<Leave> leaderSelectRecorde(Page<Leave> page, @Param("param") QueryLeave queryLeave);

    void addLeaveEvent(ExamineLeave examineLeave);

    List<leaveUserId> selectUserIds();

    List<leaveUserId> selectLeaveUserIds(leaveReport report);

    List<leaveDepart> selectLeaveDepart();

    Integer selectDepartLeaveNumByDepartId(Map<String,Object> param);
}
